package deepclone.cntorder;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;

public class CountPerf {
	
	@Benchmark
    public void asc() {
        for (int i = 0; i < 1_000_000; i++) {

        }
    }
	
	@Benchmark
    public void desc() {
        for (int i = 1_000_000; i > 0; i--) {

        }
    }
	
	public static void main(String[] args) throws RunnerException {
        Options opt = new OptionsBuilder()
                .include("CountPerf")
                .exclude("Helloworld")
                //.mode(Mode.Throughput)
                .warmupIterations(5)
                .measurementIterations(5)
                .forks(1)
                .build();

        new Runner(opt).run();
		
    }
	
	
}
